﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Enterprise.Management.Business
{
    public class DependencyEconomyBLL : BaseBLL
    {
        public DP_Economy_Info Get(int ctgrID)
        {
            return DataContext.DP_Economy_Info.FirstOrDefault(m => m.EcnInf_CtgrID == ctgrID);
        }

        public bool Add(DP_Economy_Info dp_economy_info)
        {
            DataContext.DP_Economy_Info.InsertOnSubmit(dp_economy_info);
            return Submit();
        }

        public bool Update(DP_Economy_Info dp_economy_info)
        {
            return Submit();
        }
    }
}